<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{$siteTitle}</title>
<link href="__ADMIN__/css/style.css" rel="stylesheet"
	type="text/css" />
<script type="text/javascript" src="__ADMIN__/wx/js/jquery.js"></script>
<script type="text/javascript" src="__ADMIN__/wx/js/ecmall.js"
	charset="utf-8"></script>
<script type="text/javascript" src="__ADMIN__/wx/js/admin.js"
	charset="utf-8"></script>
<script type="text/javascript">
	$(document).ready(function() {
		$(".click").click(function() {
			$(".tip").fadeIn(200);
		});

		$(".tiptop a").click(function() {
			$(".tip").fadeOut(200);
		});

		$(".sure").click(function() {
			$(".tip").fadeOut(100);
		});

		$(".cancel").click(function() {
			$(".tip").fadeOut(100);
		});
	});

	$(function() {
		$('.lock1').click(function() {
			var isLock = confirm("确定设为已使用" + '?');
			if (isLock) {
				return true;
			}
			return false;
		});
	});

	$(function() {
		$('.lock2').click(function() {
			var isLock = confirm("确定设为未使用" + '?');
			if (isLock) {
				return true;
			}
			return false;
		});
	});
	$(function() {
		$('.del').click(function() {
			var isDel = confirm("确定删除" + '?');
			if (isDel) {
				return true;
			}
			return false;
		});
	});

	function cheackSearch() {
		if ($("#searchKey").val() == "") {
			alert("您未输入任何查询条件哦！");
			return false;
		}
	}

	function addService() {
		var url = "{:U('add')}";
		window.location.href = url;
	}
</script>
</head>
<body>
	<div class="place">
		<span>位置：</span>
		<ul class="placeul">
			<li><a href="#">首页</a></li>
			<li><a href="#">用户列表</a></li>
		</ul>
	</div>
	<div class="rightinfo">

<!-- 		<div class="tools"> -->
<!-- 			<ul class="toolbar"> -->
<!-- 				<a href="javascript:void(0);" onclick="addService();"><li -->
<!-- 					class="click"><span><img src="__ADMIN__/images/t01.png" /></span>新增服务项目</li></a> -->
<!-- 			</ul> -->
<!-- 		</div> -->

		<fieldset style="border: 1px solid silver; margin-bottom: 20px;">
	    	<legend style="margin-left: 10px; font-size: 14px; color: #009FDE; font-weight: bold;">查询</legend>
		    <div id="search_custom" >
			    <form action="{:U('/Admin/User/search')}" method="get" onsubmit="return cheackSearch();">
				    <ul class="seachform" style="margin: 10px 0px 0px 10px;">
					    <li><label>用户OpenId：</label><input name="openId" type="text" class="scinput" value=""/></li>
					    <li><label>手机号：</label><input name="mobile" type="text" class="scinput" value=""/></li>
					    <li><label>用户编号：</label><input name="userId" type="text" class="scinput" value=""/></li>
					    <li><label>&nbsp;</label><input name="" type="submit" class="scbtn" value="查询"/></li>
				    </ul>
				</form>
		    </div>
	    </fieldset>

		<table class="tablelist">
			<thead>
				<tr>
					<th><input name="" type="checkbox" class="checkall" /></th>
					<th>用户编号</th>
					<th>用户OpenId</th>
					<th>用户名</th>
					<th>手机号</th>
					<th>个人头像</th>
					<th>注册时间</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="list" item="item">
				<tr>
					<td><input name="" type="checkbox" class="checkitem" value="{$item.id}" /></td>
					<td>{$item.id}</td>
					<td>{$item.open_id}</td>
					<td>{$item.username}</td>
					<td>{$item.mobile}</td>
					<td ><img src="{$item.headerimg}" style="width：60px; height: 60px;"/></td>
					<td >{$item.created|date="Y-m-d H:i:s",###}</td>
				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagin">
			{$page}
		</div>
	</div>
	<script type="text/javascript">
		$('.tablelist tbody tr:odd').addClass('odd');
	</script>
</body>
</html>